<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>

	<div class="content-wrapper" th:fragment="securityGroup">
		<h3>安全组管理</h3>
		<div class="row "></div>
		<div class="row">
			<!-- Group -->
			<div class="col-lg-6">
				<div class="panel panel-default">
					<div class="panel-heading">安全组列表</div>
					<div class="col-xs-2  pull-left">
						<button class="btn btn-default fa fa-plus btn-sm "
							id="addBtnGroup">添加安全组</button>
					</div>
					<div class="panel-body">
						<table id="groupTable" class="table table-striped table-hover">
							<thead>
								<tr>
									<th></th>
									<th>名称</th>
									<th>最后修改人</th>
									<th>最后修改时间</th>
									<th>操作</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
			<!-- Role -->
			<div class="col-lg-6">
				<div class="panel panel-default">
					<input class="panel-heading" id="groupTableId" type="hidden" />
					<div class="panel-heading">权限列表</div>
					<div class="pull-left">
						<div class="panel-heading" id="groupTableTitle"></div>
					</div>
					<div class="panel-body">
						<table id="powerTable" class="table table-striped table-hover">
							<thead>
								<tr>
									<th></th>
									<th>名称</th>
									<th>读</th>
									<th>写</th>
									<th>删</th>
									<th>管理员</th>
									<th>操作</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div th:fragment="securityGroup_dialog">
		<div id="groupModel" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabelLarge" aria-hidden="true"
			class="modal fade">
			<div class="modal-dialog ">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close"
							class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="groupModelTitle" class="modal-title"></h4>
					</div>
					<div class="modal-body">
						<form id="groupForm">
							<div class="form-group">
								<label class="control-label">*安全组名称 </label> <input type="text"
									name="groupName" id="groupName" required="" minlength="2"
									class="form-control" />
							</div>
							<input type="hidden" id="groupId" name="groupId" value="" /> <input
								type="hidden" id="oper" name="oper" value="" />

						</form>

					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="submitBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>

		<div id="powerModel" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabelLarge" aria-hidden="true"
			class="modal fade" style="padding-left: 100px; padding-top: 100px;">
			<div class="modal-dialog " style="width: 200px;">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close"
							class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="powerModelTitle" class="modal-title">权限</h4>
					</div>
					<div class="modal-body" style="height: 150px;">
						<form id="powerForm">
							<div class="form-group">

								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" id="readPowerCheck"
										name="checkbox" /> <span class="fa fa-check"></span>读
									</label>
								</div>
								<input type="hidden" name="readPower" id="readPower" />
								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" id="updatePowerCheck"
										name="checkbox" /> <span class="fa fa-check"></span>写
									</label>
								</div>
								<input type="hidden" name="updatePower" id="updatePower" />
								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" id="deletePowerCheck"
										name="checkbox" /> <span class="fa fa-check"></span>删
									</label>
								</div>
								<input type="hidden" name="deletePower" id="deletePower" />
								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" id="managerPowerCheck"
										name="checkboxAll" /> <span class="fa fa-check"></span>管理员
									</label>
								</div>
								<input type="hidden" name="managerPower" id="managerPower" />
							</div>
							<input type="hidden" id="rpId" name="rpId" value="" /> <input
								type="hidden" id="power" name="power" value="" />
						</form>

					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="updateBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div th:fragment="securityGroup_js">
		<script th:src="@{/business/manager/securityGroup/securityGroup.js}"></script>
	</div>

</body>
</html>